home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / Customizer.java < prev    next >
Text File  |  1998-09-22  |  2KB  |  56 lines

  1. /*
  2.  * @(#)Customizer.java    1.12 98/07/01
  3.  *
  4.  * Copyright 1996-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.beans;
  16.  
  17. /**
  18.  * A customizer class provides a complete custom GUI for customizing
  19.  * a target Java Bean.
  20.  * <P>
  21.  * Each customizer should inherit from the java.awt.Component class so
  22.  * it can be instantiated inside an AWT dialog or panel.
  23.  * <P>
  24.  * Each customizer should have a null constructor.
  25.  */
  26.  
  27. public interface Customizer {
  28.  
  29.     /**
  30.      * Set the object to be customized.  This method should be called only
  31.      * once, before the Customizer has been added to any parent AWT container.
  32.      * @param bean  The object to be customized.
  33.      */
  34.     void setObject(Object bean);
  35.  
  36.     /**
  37.      * Register a listener for the PropertyChange event.  The customizer
  38.      * should fire a PropertyChange event whenever it changes the target
  39.      * bean in a way that might require the displayed properties to be
  40.      * refreshed.
  41.      *
  42.      * @param listener  An object to be invoked when a PropertyChange
  43.      *        event is fired.
  44.      */
  45.      void addPropertyChangeListener(PropertyChangeListener listener);
  46.  
  47.     /**
  48.      * Remove a listener for the PropertyChange event.
  49.      *
  50.      * @param listener  The PropertyChange listener to be removed.
  51.      */
  52.     void removePropertyChangeListener(PropertyChangeListener listener);
  53.  
  54. }
  55.  
  56.